package com.gxg.demo10.mydemo11.yueshu;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bigkoo.convenientbanner.ConvenientBanner;
import com.gxg.demo10.mydemo11.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class YueShuBuJuActivity extends AppCompatActivity {

    @Bind(R.id.banners)
    ConvenientBanner banners;
    @Bind(R.id.iv_img)
    ImageView ivImg;
    @Bind(R.id.tv1)
    TextView tv1;
    @Bind(R.id.tab1)
    TextView tab1;
    @Bind(R.id.tab2)
    TextView tab2;
    @Bind(R.id.tab3)
    TextView tab3;
    @Bind(R.id.float_btn)
    FloatingActionButton floatBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yue_shu_bu_ju);
        ButterKnife.bind(this);

        floatBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(YueShuBuJuActivity.this, LoginTestActivity.class));
            }
        });
    }

    @OnClick({R.id.tab1, R.id.tab3, R.id.tab2})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tab1:
                startActivity(new Intent(YueShuBuJuActivity.this, HomeTestActivity.class));
                break;
            case R.id.tab3:
                break;
            case R.id.tab2:
                break;
        }
    }
}
